
#include "map.h"
#include<QPainter>
Map::Map()
{
    map1=QPixmap(":/image/images/shamotab");
    map2=QPixmap(":/image/images/shamotab");
    cx1=0;
    cx2=map1.width();
}
void Map::mapmove(){
    cx1-=2;
    cx2-=2;
    if((cx1+map1.width()<=0))
    {
        cx1=cx2+map2.width();
    }
    if((cx2+map1.width()<=0))
    {
        cx2=cx1+map1.width();
    }
}
